//direction of optimization
//$Id: optimization_direction.h 98 2009-08-26 15:35:52Z Oleg.Bulychov $
#pragma once
#ifndef OPTIMIZATION_DIRECTION_H
#define OPTIMIZATION_DIRECTION_H

#include <functional>
//__________________________________________________________________________________
enum
{
    OPT_MINIMIZE = 0,
    OPT_MAXIMIZE = 1
};
//__________________________________________________________________________________
template<typename T = int>
struct maximization:
    public std::greater<T>
{
    enum { direction = OPT_MAXIMIZE };
};
//__________________________________________________________________________________
template<typename T = int>
struct minimization:
    public std::less<T>
{
    enum { direction = OPT_MINIMIZE };
};
//__________________________________________________________________________________

#endif
//EOF!
